package com.happyclub.lbj.service.impl;

import com.happyclub.lbj.service.IProductSize;
import com.happyclub.lbjdao.ProductSize;
import com.happyclub.pojo.TbProductSize;
import com.happyclub.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 高欢
 * @description TODO
 * @date 2019/4/11
 */
@Service
public class ProductSizeImpl implements IProductSize {

    @Autowired
    ProductSize iProductSize;

    @Override
    public JsonResult findAllSize() {
        List<TbProductSize> all = iProductSize.findAll();
        JsonResult<Object> jsonResult = new JsonResult<>();
        jsonResult.setResult(all);
        return jsonResult;
    }

}
